#include "update_hw.h"

int update(int cmd){
    switch(cmd){
        case UPDATE_KERNEL:
            update_kernel();
            pr_debug("SERVER:update:recv cmd is %d",cmd);
            break;
        case UPDATE_SERVER:
            update_server();
            break;
        case UPDATE_CLIENT:
            update_client();
            break;
        default:
            pr_debug("No such update cmd\n");
            return -1;

    }
    return 0;
}
